function isCorrectPassword(password, hashedPassword) {
  const crypto = require("crypto");
  const hash = crypto.createHash("md5");
  hash.update(password);
  return hash.digest("hex") === hashedPassword;
}

module.exports = isCorrectPassword;
